const useFolderFilter = (initInfo, treeRef) => {
  const filterTreeList = () => {
    treeRef.value.filter(initInfo.value.folderName)
  }

  const filterTreeNodeHandler = (value, data) => {
    if (!value) return true
    return data.title.includes(value)
  }
  return {
    filterTreeList,
    filterTreeNodeHandler
  }
}
export default useFolderFilter
